project(tests)
find_package(GTest REQUIRED)

set(TEST_SRC
    ../src/geometry.cpp
    ../src/node.cpp
)

add_executable(edge edge.cpp ${TEST_SRC})
target_include_directories(edge PRIVATE ../src/)
target_link_libraries(edge PRIVATE GTest::GTest GTest::Main)

add_executable(figure figure.cpp ${TEST_SRC})
target_include_directories(figure PRIVATE ../src/)
target_link_libraries(figure PRIVATE GTest::GTest GTest::Main)
set_property(TARGET figure PROPERTY CXX_STANDARD 14)

gtest_discover_tests(figure)
gtest_discover_tests(edge)
